/*
 * Copyright 2010 Mttang.com All right reserved. This software is the
 * confidential and proprietary information of Mttang.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Mttang.com.
 */
package com.mttang.sys.biz.service.support;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.mttang.framework.core.service.AbstractService;
import com.mttang.sys.biz.service.PrivilegeService;
import com.mttang.sys.dto.PrivilegeDTO;
import com.mttang.sys.integration.dao.PrivilegeDAO;
import com.mttang.util.SysBeanConstant;

/**
 * 类PrivilegeServiceImpl.java的实现描述：TODO 类实现描述 
 * @author acc 2010-6-1 下午02:54:50
 */
public class PrivilegeServiceImpl  extends AbstractService implements  PrivilegeService{

    private Log logger = LogFactory.getLog(getClass());
    /* (non-Javadoc)
     * @see com.mttang.sys.biz.service.PrivilegeService#findall()
     */
    @Override
    public List<PrivilegeDTO> findall() {
        // TODO Auto-generated method stub
        if (logger.isInfoEnabled()) {
            logger.info("---PrivilegeServiceImpl---findAll");
        }
        PrivilegeDAO dao =(PrivilegeDAO) context.getBean(SysBeanConstant.DAO_PRIVILEGE);
        return dao.findall();
    }

}
